# 03-循环读取文件.py
f = open('./01-test.txt',"r",encoding="utf-8")
# for x in f:
#     # x 表示文件中一行
#     print(x)
# f.close() # 关闭后文件将不再被读取

# 
while True:
    a = f.readline()
    if not a:
        break;
    print(a)